Optimal. Leaf size=70 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a+b}}\right )}{f \sqrt{a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.106442, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {4139, 446, 86, 63, 208} \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a+b}}\right )}{f \sqrt{a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4139
Rule 446
Rule 86
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{\cot (e+f x)}{\sqrt{a+b \sec ^2(e+f x)}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{x \left (-1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{(-1+x) x \sqrt{a+b x}} \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{a+b x}} \, dx,x,\sec ^2(e+f x)\right )}{2 f}-\frac{\operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+b x}} \, dx,x,\sec ^2(e+f x)\right )}{2 f}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{-1-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b \sec ^2(e+f x)}\right )}{b f}-\frac{\operatorname{Subst}\left (\int \frac{1}{-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b \sec ^2(e+f x)}\right )}{b f}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a}}\right )}{\sqrt{a} f}-\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b \sec ^2(e+f x)}}{\sqrt{a+b}}\right )}{\sqrt{a+b} f}\\ \end{align*}
Mathematica [F] time = 2.35647, size = 0, normalized size = 0. \[ \int \frac{\cot (e+f x)}{\sqrt{a+b \sec ^2(e+f x)}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.407, size = 376, normalized size = 5.4 \begin{align*}{\frac{ \left ( \sin \left ( fx+e \right ) \right ) ^{2}}{2\,f\cos \left ( fx+e \right ) \left ( -1+\cos \left ( fx+e \right ) \right ) }\sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}} \left ( \ln \left ( -4\,{\frac{1}{-1+\cos \left ( fx+e \right ) } \left ( \cos \left ( fx+e \right ) \sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}}\sqrt{a+b}+a\cos \left ( fx+e \right ) +\sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}}\sqrt{a+b}+b \right ) } \right ) \sqrt{a}-\ln \left ( -2\,{\frac{-1+\cos \left ( fx+e \right ) }{\sqrt{a+b} \left ( \sin \left ( fx+e \right ) \right ) ^{2}} \left ( \cos \left ( fx+e \right ) \sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}}\sqrt{a+b}-a\cos \left ( fx+e \right ) +\sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}}\sqrt{a+b}+b \right ) } \right ) \sqrt{a}-2\,\ln \left ( 4\,\cos \left ( fx+e \right ) \sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}}\sqrt{a}+4\,a\cos \left ( fx+e \right ) +4\,\sqrt{a}\sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}}} \right ) \sqrt{a+b} \right ){\frac{1}{\sqrt{a+b}}}{\frac{1}{\sqrt{a}}}{\frac{1}{\sqrt{{\frac{b+a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot \left (f x + e\right )}{\sqrt{b \sec \left (f x + e\right )^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.1719, size = 2527, normalized size = 36.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot{\left (e + f x \right )}}{\sqrt{a + b \sec ^{2}{\left (e + f x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cot \left (f x + e\right )}{\sqrt{b \sec \left (f x + e\right )^{2} + a}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]